<?php
session_start( );
?>
<?php

// redirect php page
$submit = $_REQUEST['submit'];
//var_dump($_REQUEST);
$findme1  = 'modifyAddReg';
$findme2  = 'confirmReg';
$findme3  = 'Modify/Add Registration';
$findme4  = 'Confirm Registration';
$findme5  = 'modifyReg';
$findme6  = 'Confirm Modification';
$pos1 = strpos($submit, $findme1);
$pos2 = strpos($submit, $findme2);
$pos3 = strpos($submit, $findme3);
$pos4 = strpos($submit, $findme4);
$pos5 = strpos($submit, $findme5);
$pos6 = strpos($submit, $findme6);
$_SESSION['verifyUser'] = 1;
//$_SESSION['conferenceID']="2009Summer";

// The !== operator can also be used.  Using != would not work as expected
// because the position of 'a' is 0. The statement (0 != false) evaluates 
// to false.

if ( ($pos1 !== false) or ($pos3 !== false) ) {
header("location: con_registration.php");
} 

if ( ($pos2 !== false) or ($pos4 !== false) ) {
header("location: con_confirmation.php");
} 

if ( ($pos5 !== false) or ($pos6 !== false) ) {
header("location: con_modconfirm.php");
} 
//var_dump($_REQUEST);
?> 

